<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/12/8
 * Time: 20:43
 * 退出后台登录
 */

//启用SESSION
session_start();

//删除SESSION变量
unset($_SESSION['uid']);
unset($_SESSION['shell']);
unset($_SESSION['userName']);
unset($_SESSION['userType']);

//跳转到后台登录页面
echo "<script>location.href='login.php';</script>";